<?php

namespace common\models\tsline;

use Yii;

/**
 * This is the model class for table "{{%ts_dynamic_statistic}}".
 *
 * @property int $id
 * @property int $dynamic_id 动态ID
 * @property int $views 浏览次数
 * @property int $comments 评论数
 * @property int $likes 点赞数
 * @property int $shares 分享数
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class TslineDynamicStatistic extends \yii\db\ActiveRecord {

    use \common\traits\TimestampBehavior;

    /**
     * @inheritdoc
     */
    public static function tableName() {
        return '{{%ts_dynamic_statistic}}';
    }

    /**
     * @inheritdoc
     */
    public function rules() {
        return [
            [['dynamic_id', 'views', 'comments', 'likes', 'shares', 'created_at', 'updated_at'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'dynamic_id' => '动态ID',
            'views' => '浏览次数',
            'comments' => '评论数',
            'likes' => '点赞数',
            'shares' => '分享数',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }

}
